<div class="frame_addfactoryDiv">
  <form name="accountForm" id="accountForm"  action="administrator-account-docomplete?accountid=<?=$this->accountArray[0]['accountid']?>" method="post">
  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">
    <tr>
      <td width="15%" class="ri-bbgg"> 款项订单：</td>
      <td width="85%" class="le">
	  	<?foreach($this->orderArray as $value):?>
			<div style="line-height:25px;border-bottom:1px #cccccc dotted;">
				订单号: J<?=$value[0]['orderid']?>&nbsp;&nbsp;&nbsp;订单金额: $<?=$value[0]['money']?>
				<br />
				( $<?=$value[0]['money']?> - $<?=$value[0]['shipping_cost']?> ) × <?=$value[0]['discount']*100?>% + $<?=$value[0]['shipping_cost']?> = $<?=round(($value[0]['money']-$value[0]['shipping_cost'])*$value[0]['discount']+$value[0]['shipping_cost'],2)?> 
				<br />
				卖家账户名: <?=$value[0]['seller_name']?>&nbsp;&nbsp;&nbsp;
				<br />
				买家账户名: <?=$value[0]['username']?>
				<a href="administrator-order-more?orderid=<?=$value[0]['orderid']?>">查看订单</a>
			</div>
			<br />
		<?endforeach;?>
		<br />
		用户使用消费券：$<?=$this->orderArray[0][0]['coupon']?>
	  </td>
    </tr>
	<tr>
      <td class="ri-bbgg"> Payment：</td>
      <td class="le">
	  	<strong><?=$this->accountArray[0]['payment']?></strong>
		<?=$this->getPayment($this->accountArray[0]['payment']);?>
	  </td>
    </tr>
	<tr>
	  <td width="20%" class="ri-bbgg"> 备注：</td>
	  <td width="80%" class="le">
		<?=$this->accountArray[0]['remark']?>
	  </td>
	</tr>
    <tr>
      <td colspan="2" class="se" align="center">
	  	<?if($this->accountArray[0]['state']=='0'):?>
        <input name="button2" onclick="docomplete();" type="button" class="iput" value="设定已处理" /><input type="hidden" value='1' name="state" />
		<?endif;?>　
        <input name="button" type="button" class="iput" value="返 回" onclick="commonEffection.confirmBack();" />
      </td>
    </tr>
  </table>
  </form>
</div>
<script>
function docomplete(){
	if(confirm('确定确认为已处理？')){
		$('#accountForm').submit();
	}
}
</script>